home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / set < prev    next >
Encoding:
Text File  |  2001-03-21  |  743 b   |  28 lines

  1. Synopsis:
  2.    on [<modes>]set [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever a /set is issued.
  6.  
  7. Parameters:
  8.    $0    name of variable to be set.
  9.          will be "set-error" if an invalid SET variable was specified
  10.    $1-   value the variable will be set to.
  11.          will be "No such variable "FOO"", where FOO is the invalid SET
  12.      variable if $0 is "set-error"
  13.  
  14. Examples:
  15.    To make sure EXEC_PROTECTION stays on:
  16.       on ^set "exec_protection off" {
  17.          echo *** You cannot set EXEC_PROTECTION off!
  18.          set exec_protection on
  19.       }
  20.  
  21.    To warn of all invalid /SET attempts:
  22.       on ^set "set-error *" {
  23.          echo *** $1-. Please try again
  24.       }
  25. See Also:
  26.    set(4)
  27.  
  28.